package org.artifact.xlsx;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

public abstract class AbstractConvert {

    public static final String TYPE_STRING = "str";
    public static final String TYPE_STRING_ARRAY = "strs";
    public static final String TYPE_INT = "int";
    public static final String TYPE_INT_ARRAY = "ints";
    public static final String TYPE_JSON = "json";
    public static final String TYPE_MAP = "map";
    public static final String TYPE_TXT = "txt";


    protected static Map<String,String> i18n = new HashMap<>();

    /**
     * 输出Excle
     * @param file
     * @param outputPath
     */
    abstract void convertXlsx(File file, String outputPath);

    /**
     * 输出Yml
     * @param file
     * @param outputPath
     */
    abstract void convertYml(File file, String outputPath);

    /**
     * 文件夹
     * @return
     */
    abstract String getDir();

    /**
     * 输出i18n文件
     * @param outputPath
     */
    abstract void writeI18nFile(String outputPath);
}
